.content {
  padding: 24px;
  width: 70%;
  margin: 0 auto;
  background: #f8f9fa;
  min-height: 100vh;
}
.page-header {
  text-align: center;
  margin-bottom: 32px;
}

.page-header h1 {
  margin: 0 0 8px 0;
  font-size: 32px;
  font-weight: 600;
  color: #333;
}

.page-header p {
  margin: 0;
  font-size: 16px;
  color: #666;
}

.bookList {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}

.book {
  width: 20%;
  background: white;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.book:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.img {
  width: 100%;
  margin-bottom: 16px;
}

.img img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.3;
  height: 40px;
  overflow: hidden;
  user-select: none;
}

.actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  width: 100%;
}

.book button {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
  user-select: none;
}

/* 借书按钮 - 绿色渐变 */
.borrow {
  background: linear-gradient(135deg, #67c23a 0%, #85ce61 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(103, 194, 58, 0.3);
}

.borrow:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(103, 194, 58, 0.4);
}

/* 取消收藏按钮 - 红色渐变 */
.unfavorite {
  background: linear-gradient(135deg, #a3a3c2 0%, #cfcfe6 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(163, 163, 194, 0.3);
}

.unfavorite:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(163, 163, 194, 0.3);
}

/* 响应式调整：屏幕窄时减少列数 */
@media (max-width: 1024px) {
  .book {
    width: calc((100% - 48px) / 3);
  }
}

@media (max-width: 768px) {
  .book {
    width: calc((100% - 24px) / 2);
  }
}

@media (max-width: 480px) {
  .book {
    width: 100%;
  }
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin: 40px auto;
  width: 60%;
  border-left: 5px solid #409eff; /* 蓝色竖条，提升视觉感 */
}

.empty-text {
  font-size: 18px;
  font-weight: 600;
  color: #409eff; /* 蓝色：代表提示、鼓励 */
  margin-bottom: 8px;
}

.empty-tip {
  font-size: 14px;
  color: #67c23a; /* 绿色：鼓励、引导积极操作 */
}
